import { request } from "../request";

const token = localStorage.getItem("token");
const logoutAPI = async () => {
    const token = localStorage.getItem("token");
    return request("/api/auth/logout",{
        method: "post",
        headers: {"Content-Type":"application/x-www-form-urlencoded", 'Authorization':`Bearer ${token}`},
    })
}
export default logoutAPI;